package org.bunny.vehicle.repository;

import org.bunny.vehicle.entity.Journey;
import org.bunny.vehicle.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * 班次仓库
 * 
 * @author Bunny
 * @version 2013-5-16 下午5:16:26
 * 
 */
public interface JourneyRepository extends BaseRepository<Journey> {

	public Page<Journey> findByVerifyStatus(byte verifyStatus, Pageable page);

	public Page<Journey> findByCommitUserAndVerifyStatus(User user, byte verifyStatus, Pageable page);

	public Page<Journey> findByDriverAndVerifyStatus(User driver, byte verifyStatus, Pageable page);

}
